import request from '@/utils/request'

// 获取教师班级列表
export function getClassList(query) {
  return request({
    url: '/analysis/classList',
    method: 'get',
    params: query
  })
}

// 获取班级学生列表
export function getStudentList(query) {
  return request({
    url: '/analysis/studentList/' + query.classId,
    method: 'get',
    params: {
      pageNum: query.pageNum,
      pageSize: query.pageSize,
      studentName: query.studentName
    }
  })
}

// 获取班级分析数据
export function getClassAnalysis(classId) {
  return request({
    url: '/analysis/classAnalysis/' + classId,
    method: 'get'
  })
}

// 获取学生分析数据
export function getStudentAnalysis(studentId) {
  return request({
    url: '/analysis/studentAnalysis/' + studentId,
    method: 'get'
  })
}

// 获取班级数据挖掘分析结果
export function getClassMiningAnalysis(classId) {
  return request({
    url: '/analysis/classMining/' + classId,
    method: 'get'
  })
}

// 获取学生数据挖掘分析结果
export function getStudentMiningAnalysis(studentId) {
  return request({
    url: '/analysis/studentMining/' + studentId,
    method: 'get'
  })
}

// 获取试卷分析数据
export function getPaperAnalysis(paperId) {
  return request({
    url: `/manage/analysis/paper/${paperId}`,
    method: 'get'
  })
}

// 获取试卷题型分析数据
export function getQuestionTypeAnalysis(paperId) {
  return request({
    url: `/manage/analysis/paper/${paperId}/type`,
    method: 'get'
  })
}

// 获取试卷题目详细分析数据
export function getQuestionAnalysis(paperId) {
  return request({
    url: `/manage/analysis/paper/${paperId}/questions`,
    method: 'get'
  })
} 

// AI辅助试卷分析
export function getAIPaperAnalysis(paperId) {
  return request({
    url: `/manage/ai/analyze/paper/${paperId}`,
    method: 'get'
  })
} 